package com.sunyard.pcc.dal.mapper;

import com.sunyard.pcc.dal.model.SysRoleDO;
import com.sunyard.pcc.dal.query.SysRoleQuery;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * MyBatis Mapper for SysRole.
 */
@Mapper
@Repository
public interface SysRoleMapper {

    /**
     * query count by query condition.
     */
    int countByQuery(SysRoleQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(SysRoleQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(SysRoleDO record);

    /**
     * insert selective.
     */
    int insertSelective(SysRoleDO record);

    /**
     * select by query condition.
     */
    List<SysRoleDO> selectByQuery(SysRoleQuery query);

    /**
     * select by primary key.
     */
    SysRoleDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") SysRoleDO record, @Param("query") SysRoleQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") SysRoleDO record, @Param("query") SysRoleQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(SysRoleDO record);
}